package org.hcyspartnoc.demo.pojo.dto.system;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hcyspartnoc.demo.common.constant.RegexpConstant;
import org.hibernate.validator.constraints.Length;

@Data
@NoArgsConstructor
public class SysUserLoginByPhoneDto {
    @NotBlank(message = "工号不能为空")
    @Pattern(regexp = RegexpConstant.FOUR_DIGITS, message = "工号格式错误")
    private String account;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = RegexpConstant.PASSWORD, message = "密码格式错误")
    private String password;
}
